﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm11.aspx.cs" Inherits="WebApplication1.WebForm11" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:Label ID="Label1" runat="server" Text="姓名:"></asp:Label><asp:TextBox ID="Username"  runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="Label2" runat="server" Text="密码:"></asp:Label><asp:TextBox ID="Password" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="Label3" runat="server" Text="邮箱:"></asp:Label><asp:TextBox ID="Email" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="Label4" runat="server" Text="介绍:"></asp:Label><asp:TextBox ID="Intro" runat="server"></asp:TextBox>
            <br />
            <asp:Button ID="Button2" runat="server" Text="提交" OnClick="Button2_Click" />
            <br />
            <asp:Literal ID="Literal1" runat="server"></asp:Literal>
            <br />
            <br />
            <br />
            <br />
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><asp:Button ID="Button1" runat="server" Text="查询" OnClick="Button1_Click"/>
            <br />
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowDeleting="GridView1_RowDeleting" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" >
                <Columns>
                    <asp:BoundField DataField="stu_name" HeaderText="姓名" />
                    <asp:BoundField DataField="password" HeaderText="密码" />
                    <asp:BoundField DataField="email" HeaderText="邮箱" />
                    <asp:BoundField DataField="intro" HeaderText="自我介绍" />
                    <asp:CommandField HeaderText="删除" ShowDeleteButton="True" ShowHeader="True" />
                    <asp:CommandField HeaderText="编辑" ShowEditButton="True" ShowHeader="True" />
                </Columns>
            </asp:GridView>
        </div>
    </form>
</body>
</html>
